#define _CRT_SECURE_NO_WARNINGS 1
class Board {
public:
    bool checkWon(vector<vector<int> > board) {
        // write code here
        if (board[0][0] + board[0][1] + board[0][2] == 3 ||
            //board[0][0] + board[0][1] + board[0][2] == -3 ||
            board[1][0] + board[1][1] + board[1][2] == 3 ||
            //board[1][0] + board[1][1] + board[1][2] == -3 ||
            board[2][0] + board[2][1] + board[2][2] == 3 ||
            //board[2][0] + board[2][1] + board[2][2] == -3 ||
            //board[0][0] + board[1][1] + board[2][2] == -3 ||
            board[0][0] + board[1][1] + board[2][2] == 3 ||
            //board[0][2] + board[1][1] + board[2][0] == -3 ||
            board[0][2] + board[1][1] + board[2][0] == 3 ||
            //board[0][0] + board[1][0] + board[2][0] == -3 ||
            board[0][0] + board[1][0] + board[2][0] == 3 ||
            //board[0][1] + board[1][1] + board[2][1] == -3 ||
            board[0][1] + board[1][1] + board[2][1] == 3 ||
            //board[0][2] + board[1][2] + board[2][2] == -3 ||
            board[0][2] + board[1][2] + board[2][2] == 3)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
};